package com.bawei.api;

import com.bawei.common.core.domain.R;
import com.bawei.factory.RemoteMallUserFallbackFactory;
import com.bawei.mall.search.domain.Po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 用户服务
 *
 * @author bawei
 */
@FeignClient(contextId = "remoteMallUserService", value = "mall-user", fallbackFactory = RemoteMallUserFallbackFactory.class)
public interface RemoteMallUserService
{
    /**
     * 查询登录用户信息
     * @return
     */
    @GetMapping("/user/findUser")
    public R<User> findUser();
}
